package in.iqing.view.activity;

import in.iqing.app.R;
import in.iqing.control.api.callback.BookListCallback;
import in.iqing.model.bean.Recommend;

/**
 * Created by ZuoShu on 15/7/11.
 */
public class RecommendBookListActivity extends BaseBookListActivity {
    Recommend recommend;

    @Override
    protected void initializeVariable() {
        recommend = (Recommend) getIntent().getSerializableExtra("recommend");
        title.setText(R.string.activity_main_recommend);
    }

    @Override
    protected void requestBookList(int pageSize, int pageNo, BookListCallback callback) {
        callback.onSuccess(recommend.getRecommendBooks());
    }
}
